﻿using SuporeSliplampApp.Base;
using SuporeSliplampApp.Util;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Imaging;

namespace SuporeSliplampApp.Models
{
    public class HomeModel :NotifyBase
    {
		private UIElement _mainContent;

		public UIElement MainContent
		{
			get { return _mainContent; }
			set { _mainContent = value; this.NotifyChanged();}
		}
        private string _lablelMsg;

        public string LableMsg
        {
            get { return _lablelMsg; }
            set { _lablelMsg = value; this.NotifyChanged(); }
        }

        private BitmapImage _cImage;

        public BitmapImage CImage
        {
            get { return _cImage; }
            set { _cImage = value; }
        }

        private uvcham _cam;

        public uvcham Cam
        {
            get { return _cam; }
            set { _cam = value; }
        }

        private WriteableBitmap bmp_;

        public WriteableBitmap Bmp
        {
            get { return bmp_; }
            set { bmp_ = value; }
        }

        private IntPtr buf_ = IntPtr.Zero;

        public IntPtr Buf
        {
            get { return buf_; }
            set { buf_ = value; }
        }

        private ObservableCollection<Model> vm_model { get; set; }

        public ObservableCollection<Model> VM_Model
        {
            get { return vm_model; }
            set { vm_model = value; }
        }

        public class Model
        {
            public string Path { get; set; }
        }

    }
}
